# Makefile GnomePulseAppletInterface
#
# Author: Harry Karvonen <harry.karvonen@gmail.com>
#

DESTDIR =
LIBDIR =
PYTHON_VERSION =

# Default target
# make
all: dist

# Install target
# make install
install: dist
	install dist/*.egg \
          $(DESTDIR)$(LIBDIR)/python$(PYTHON_VERSION)/site-packages/
	echo `basename dist/*.egg` > \
          $(DESTDIR)$(LIBDIR)/python$(PYTHON_VERSION)/site-packages/GnomePulseAppletInterface.pth

dist:
	python setup.py bdist_egg

install-devel:
	python setup.py develop -d \
          $(LIBDIR)/python$(PYTHON_VERSION)/site-packages

uninstall:
	$(RM) $(DESTDIR)$(LIBDIR)/python$(PYTHON_VERSION)/site-packages/GnomePulseAppletInterface*

clean:
	$(RM) -r dist/ build/ GnomePulseAppletInterface.egg-info
